{% extends "volunteer/layout.html" %}

{% block volunteer_content %}
<div class="profile-content">
    <div class="section-header">
        <h1>Profile</h1>
    </div>

    <div class="section">
        <form class="profile-form" method="POST" action="{{ url_for('update_volunteer_profile') }}">
            <div class="form-group">
                <label for="name">Name</label>
                <input type="text" id="name" name="name" value="{{ profile.name }}" required>
            </div>
            <div class="form-group">
                <label for="email">Login Email</label>
                <input type="email" id="email" value="{{ profile.email }}" readonly class="readonly-field">
            </div>
            <div class="form-group">
                <label for="phone">Phone</label>
                <input type="tel" id="phone" name="phone" value="{{ profile.phone }}">
            </div>
            <div class="form-group">
                <label for="skills">Skills & Expertise</label>
                <textarea id="skills" name="skills" rows="4" placeholder="Please enter your skills and expertise, e.g.: First Aid Certificate, Photography, Teaching Experience, etc.">{{ profile.description }}</textarea>
            </div>
            <button type="submit" class="btn btn-primary">Save Changes</button>
        </form>
    </div>
</div>

<style>
.profile-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.readonly-field {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.btn-primary {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}
</style>
{% endblock %} 